The _s_e_t_a_s_h function changes the handle for the array session containing
the current process to the value specified by _a_s_h. The current process
must have superuser privileges to invoke _s_e_t_a_s_h.
Ordinarily, a handle that is unique within the current system is assigned
to an array session when the array session is created using the
_n_e_w_a_r_r_a_y_s_e_s_s(2) function. The _s_e_t_a_s_h function can be used to override
this default handle, perhaps for assigning a handle that is unique across
an entire array or for synchronizing handles with an array session on
another system.
The handle specified by _a_s_h must be a positive value, must not be in use
on the current system, and must not be in the range of values that IRIX
uses for default array session handles. This range of default handles is
defined by the system variables mmmmiiiinnnn____llllooooccccaaaallll____ppppaaaaggggggggiiiidddd and mmmmaaaaxxxx____llllooooccccaaaallll____ppppaaaaggggggggiiiidddd and
can be examined and/or modified using _s_y_s_t_u_n_e(1).
EEEERRRRRRRROOOORRRRSSSS
_s_e_t_a_s_h may fail if one or more of these conditions are true:
EEEEIIIINNNNVVVVAAAALLLL _a_s_h is negative, in use by another array session on this
system, or in the range of values reserved by the system for
default array session handles.
EEEEPPPPEEEERRRRMMMM The current process does not have superuser privileges.